-- GENERATED SPELL FOR [Station Guard] --


function spell0_21115(pUnit, Event) --@Shoot Tech Gun,n/a--
pUnit:FullCastSpellOnTarget(36246,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21115', 542, 1)
end

function Sorts_21115(pUnit, Event)
local choix_sorts_21115 = math.random(0, 0)
if choix_sorts_21115 == 0 then
pUnit:RegisterEvent('spell0_21115', 1, 1)
end
end

function mob21115_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21115', math.random(1500, 3000), 1)
end

function mob21115_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21115_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21115_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21115, 1, 'mob21115_Action')
RegisterUnitEvent(21115, 2, 'mob21115_Leave')
RegisterUnitEvent(21115, 3, 'mob21115_Kill')
RegisterUnitEvent(21115, 4, 'mob21115_Die')
